package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.Department;
import cn.edu.sdjzu.xg.eagle.entity.School;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.Collection;

/**
 * @author tg.si@188.com
 * @project xg23
 * @date 2025/3/26
 */
public interface DepartmentDao {
    boolean add(Department department) throws SQLException;
    Department find(Integer id) throws SQLException, BaseException, InvocationTargetException;

    Collection<Department> findAll() throws SQLException, BaseException, InvocationTargetException;

    boolean update(Department department) throws SQLException;
    boolean delete(Integer id) throws SQLException;
    boolean delete(Department department) throws SQLException;
    int count(School school) throws SQLException;


}
